import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import { setupRouter } from './router';
import { setupStore } from './store';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import ElementPlus from 'element-plus';

import SvgIconPlugin from '@/icons';

async function bootstrap() {
  const app = createApp(App);

  app.use(SvgIconPlugin);

  // setupAssets()

  // setupScrollbarStyle()

  setupStore(app);

  await setupRouter(app);

  app.use(ElementPlus, {
    locale: zhCn,
  });

  app.mount('#app');
}

bootstrap();
